/* SPDX-License-Identifier: GPL-2.0 */
/*
 *
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: usb dwc3 driver Vendor Hooks
 */
#ifndef DRIVERS_USB_DWC3_USB_DWC3_EXT_H
#define DRIVERS_USB_DWC3_USB_DWC3_EXT_H

#ifdef CONFIG_NETBIOS_USB_DWC3_SPEC

#if !defined(USB_DWC3_EXT_H) || defined(TRACE_HEADER_MULTI_READ)
#define USB_DWC3_EXT_H
#include "core.h"
void trace_usb_dwc3_cfg_adjust(void);
bool trace_dwc3_frame_length_adjustment(struct dwc3 *dwc);
#endif

#else

#include <linux/tracepoint.h>
struct dwc3;

DECLARE_EVENT_NOP(usb_dwc3_cfg_adjust,
					TP_PROTO(void),
					TP_ARGS());

static inline bool trace_dwc3_frame_length_adjustment(struct dwc3 *dwc)
{
	return false;
}
#endif

#endif
